Fix title handling in User::getCanonicalName
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 10 May 2014 08:41:30 +0000 (10:41 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Fri, 25 Jul 2014 07:27:15 +0000 (07:27 +0000)
commit1ef57be80aabbeb3ec6f2a02862a32aaf4f231fc
tree791a57ab1fb2131d40cb63156c1c038b1d4f08c9
parent7458dc32d99e6dd569b1629762443d074b6a3c52
Fix title handling in User::getCanonicalName

With r41328 the title validation was changed to allow rename of invalid
user names, by always creating a title object.

That removes the title validation for validation of 'usable' and
'creatable', but in that case it is also a good idea to apply title
rules to normalize spaces and reject user names which can not have a
valid title. At the moment that is done in User::isValidUserName.

Change-Id: I27c488e4008a924117ff6bac2216f148cd5e7abd
includes/User.php